package com.zhuangjie.user.feign;

import com.zhaungjie.base.conduit.TypeR;
import com.zhuangjie.shop.vo.ShopInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name= "spark-shop",path = "/shop")
public interface ShopFeignService {
    @GetMapping("/shop/{shopId}")
    // @FeignRetry(maxAttempt = 4, retryInterval = 200)
    TypeR<ShopInfoVO> getShopInfoById(@PathVariable("shopId") Long shopId);
}
